<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.SvgImage类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_svg_image.html">SvgImage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_svg_image-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.SvgImage类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.SvgImage 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_svg_image.png" usemap="#awtk.SvgImage_map" alt=""/>
  <map id="awtk.SvgImage_map" name="awtk.SvgImage_map">
<area href="classawtk_1_1_image_base.html" alt="awtk.ImageBase" shape="rect" coords="0,56,102,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a83cbd39f345abfc2d089969a2993e482"><td class="memItemLeft" align="right" valign="top"><a id="a83cbd39f345abfc2d089969a2993e482"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SvgImage</b> (long nativeObj)</td></tr>
<tr class="separator:a83cbd39f345abfc2d089969a2993e482"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99858e54fe30352562fb3b8213487111"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_svg_image.html#a99858e54fe30352562fb3b8213487111">setImage</a> (String name)</td></tr>
<tr class="separator:a99858e54fe30352562fb3b8213487111"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_image_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_image_base.html">awtk.ImageBase</a></td></tr>
<tr class="memitem:a2bc2ed96c5dc9501bfdf0a79a409839d inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a id="a2bc2ed96c5dc9501bfdf0a79a409839d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ImageBase</b> (long nativeObj)</td></tr>
<tr class="separator:a2bc2ed96c5dc9501bfdf0a79a409839d inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe3237e68270a74c238840abc559a483 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#abe3237e68270a74c238840abc559a483">setImage</a> (String name)</td></tr>
<tr class="separator:abe3237e68270a74c238840abc559a483 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c9c088486f3a96bec627192179d43dc inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a9c9c088486f3a96bec627192179d43dc">setRotation</a> (double rotation)</td></tr>
<tr class="separator:a9c9c088486f3a96bec627192179d43dc inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0ee43967050216adad167235a7848a3 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#ad0ee43967050216adad167235a7848a3">setScale</a> (double scale_x, double scale_y)</td></tr>
<tr class="separator:ad0ee43967050216adad167235a7848a3 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a651b84b0abc63a7e8bcd88e8916960de inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a651b84b0abc63a7e8bcd88e8916960de">setAnchor</a> (double anchor_x, double anchor_y)</td></tr>
<tr class="separator:a651b84b0abc63a7e8bcd88e8916960de inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16469d2873d45852603596f9395660f7 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a16469d2873d45852603596f9395660f7">setSelected</a> (boolean selected)</td></tr>
<tr class="separator:a16469d2873d45852603596f9395660f7 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b201f564a63aea4488f7c6090f81181 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a6b201f564a63aea4488f7c6090f81181">setSelectable</a> (boolean selectable)</td></tr>
<tr class="separator:a6b201f564a63aea4488f7c6090f81181 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a54077cd841d920f54f5c33c84cf9c9 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a7a54077cd841d920f54f5c33c84cf9c9">setClickable</a> (boolean clickable)</td></tr>
<tr class="separator:a7a54077cd841d920f54f5c33c84cf9c9 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17aa095933a2767502d48fcdc1701b30 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a17aa095933a2767502d48fcdc1701b30">getImage</a> ()</td></tr>
<tr class="separator:a17aa095933a2767502d48fcdc1701b30 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32cb2a987fc896328c15f90db069fe37 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a32cb2a987fc896328c15f90db069fe37">getAnchorX</a> ()</td></tr>
<tr class="separator:a32cb2a987fc896328c15f90db069fe37 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f07a92c5ee39bede5a4dc7185d06846 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a4f07a92c5ee39bede5a4dc7185d06846">getAnchorY</a> ()</td></tr>
<tr class="separator:a4f07a92c5ee39bede5a4dc7185d06846 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad03bf2dc911393faafa26f566e180812 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#ad03bf2dc911393faafa26f566e180812">getScaleX</a> ()</td></tr>
<tr class="separator:ad03bf2dc911393faafa26f566e180812 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d0ac46dc50c8f9702df123328ae8d64 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a7d0ac46dc50c8f9702df123328ae8d64">getScaleY</a> ()</td></tr>
<tr class="separator:a7d0ac46dc50c8f9702df123328ae8d64 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac456be20e29c6b7d7570ef28e5f696cc inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#ac456be20e29c6b7d7570ef28e5f696cc">getRotation</a> ()</td></tr>
<tr class="separator:ac456be20e29c6b7d7570ef28e5f696cc inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6281abe1eb0c47ccb3605bf49ce7cc2 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#aa6281abe1eb0c47ccb3605bf49ce7cc2">getClickable</a> ()</td></tr>
<tr class="separator:aa6281abe1eb0c47ccb3605bf49ce7cc2 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a692819204ca7601b6ee5e95bb831cf3c inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a692819204ca7601b6ee5e95bb831cf3c">getSelectable</a> ()</td></tr>
<tr class="separator:a692819204ca7601b6ee5e95bb831cf3c inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd78f0ba96dc8f8d5f6fc61186604a04 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#abd78f0ba96dc8f8d5f6fc61186604a04">getSelected</a> ()</td></tr>
<tr class="separator:abd78f0ba96dc8f8d5f6fc61186604a04 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a1fccc7468ffaad935e6e0734b39618c2"><td class="memItemLeft" align="right" valign="top"><a id="a1fccc7468ffaad935e6e0734b39618c2"></a>
static <a class="el" href="classawtk_1_1_svg_image.html">SvgImage</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a1fccc7468ffaad935e6e0734b39618c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5ff9d0882ad0f717ad2c77f80acd79a"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_svg_image.html#ad5ff9d0882ad0f717ad2c77f80acd79a">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:ad5ff9d0882ad0f717ad2c77f80acd79a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a087bbb38d7f90bd5990803f470fe6cfc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_svg_image.html">SvgImage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_svg_image.html#a087bbb38d7f90bd5990803f470fe6cfc">cast</a> (Widget widget)</td></tr>
<tr class="separator:a087bbb38d7f90bd5990803f470fe6cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classawtk_1_1_image_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_image_base.html">awtk.ImageBase</a></td></tr>
<tr class="memitem:a60e5286e5d477f7f274f0edaea089a7c inherit pub_static_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a id="a60e5286e5d477f7f274f0edaea089a7c"></a>
static <a class="el" href="classawtk_1_1_image_base.html">ImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a60e5286e5d477f7f274f0edaea089a7c inherit pub_static_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0677c028ec88d0d23ff57ad0ed2ec358 inherit pub_static_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_image_base.html">ImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a0677c028ec88d0d23ff57ad0ed2ec358">cast</a> (Widget widget)</td></tr>
<tr class="separator:a0677c028ec88d0d23ff57ad0ed2ec358 inherit pub_static_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a4d35f0c880d0a3b359c7fa68a03b476f"><td class="memItemLeft" align="right" valign="top"><a id="a4d35f0c880d0a3b359c7fa68a03b476f"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a4d35f0c880d0a3b359c7fa68a03b476f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classawtk_1_1_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classawtk_1_1_image_base')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classawtk_1_1_image_base.html">awtk.ImageBase</a></td></tr>
<tr class="memitem:ad9fb294c0c5f541ad5961ab979e05fdc inherit pub_attribs_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a id="ad9fb294c0c5f541ad5961ab979e05fdc"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ad9fb294c0c5f541ad5961ab979e05fdc inherit pub_attribs_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>SVG图片控件。</p>
<p>svg_image_t是image的子类控件，image_base_t的函数均适用于svg_image_t控件。</p>
<p>在xml中使用"svg"标签创建SVG图片控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">svg</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;girl&quot;</span>/&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/svg_image.xml">svg image</a></p>
<p>在c代码中使用函数svg_image_create创建SVG图片控件。如：</p>
<p>创建之后: 需要用widget_set_image设置图片名称。</p>
<p>完整示例请参考：<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/svg_image.c">svg image demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景和边框等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">svg</span>&gt;</div><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;green&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;red&quot;</span> /&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">svg</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a087bbb38d7f90bd5990803f470fe6cfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a087bbb38d7f90bd5990803f470fe6cfc">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_svg_image.html">SvgImage</a> awtk.SvgImage.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为svg_image对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>svg_image对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>svg_image对象。 </dd></dl>

</div>
</div>
<a id="ad5ff9d0882ad0f717ad2c77f80acd79a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5ff9d0882ad0f717ad2c77f80acd79a">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.SvgImage.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建svg_image对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a99858e54fe30352562fb3b8213487111"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99858e54fe30352562fb3b8213487111">&#9670;&nbsp;</a></span>setImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SvgImage.setImage </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件的图片名称。</p>
<p>如果需要显示文件系统中的图片，只需将图片名称换成实际的文件名，并加上"file://"前缀即可。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>图片名称，该图片必须存在于资源管理器。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/SvgImage.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
